MarkLogic 9 Product Documentation
DELETE /manage/v2/packages/{pkgname}/databases/{name}

Summary

[DEPRECATED: use GET /manage/v3 and POST /manage/v3 instead.]

This resource address deletes the named database (name) from the named package (pkgname).

Response

Upon success, MarkLogic Server returns status code 204 (No Content).

Required Privileges

This operation requires the manage-admin role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Example

 
     curl -X DELETE --digest -u admin:admin -H "Content-type: application/xml" \
     "http://localhost:8002/manage/v2/packages/test-package/databases/Documents" 

     ==> Deletes the 'Documents' database from the "test-package" package. 

    
Powered by MarkLogic Server | Terms of Use | Privacy Policy